<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
</head>
<body>
    <form class="layui-form" id="addRole" style="margin-top: 15px;">

        <div class="layui-form-item" style="width: 500px">
            <label class="layui-form-label">权限名称：</label>
            <div class="layui-input-block">
                <input type="text" name="name" required  lay-verify="required" placeholder="请输入权限名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="width: 500px">
            <label class="layui-form-label">权限描述：</label>
            <div class="layui-input-block">
                <input type="text" name="describes" autocomplete="off" class="layui-input">
            </div>
        </div>
    </form>
</body>

<script th:src="@{/layui/layui.js}"></script>
<script>
    layui.use(['form','upload','jquery'], function() {
        var form = layui.form;
        var upload = layui.upload;
        var $ = layui.jquery;

    })
</script>
</html>